﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AssetMeterDistribution.aspx.cs" Inherits="PolePosition.v3.WcfService.MapServices.AssetMeterDistribution" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Balloon Text</title>
    <style>
        <!--
        html body {border-left: solid steelblue 5px; background-color: White; margin: 0px; padding: 0px; padding-left: 5px; font-family: Arial; font-size: x-small; width: 100%; height: 100%; overflow-x: hidden;}
        .title-main {text-transform: uppercase; font-weight: bold; margin-top: 10px; font-size: medium;}
        .title {text-transform: uppercase; font-weight: bold; margin-top: 10px; font-size: medium;}
        .indent {padding-left: 5px;}
        img.image {margin: 3px;}
        a.image {}
        a.image:hover {}
        .namevalue-table {border: solid gainsboro 1px;}
        td.namevalue-namecell {width: 100px; font-weight: bold; padding: 3px;}
        td.namevalue-valuecell {width: 165px; padding: 3px;}
        -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:FormView ID="FormViewAssetStructure" runat="server">
        <ItemTemplate>
            <div class="title-main">
                <%# XPath("TITLE") %>
            </div>
            
            <table class="namevalue-table" cellspacing="0" cellpadding="0">
                <tr><td class="namevalue-namecell">PPI #</td><td class="namevalue-valuecell"><%# XPath("Utility_Asset_MeterId")%></td></tr>
                <tr><td class="namevalue-namecell">Latitude</td><td class="namevalue-valuecell"><%# XPath("Latitude")%></td></tr>
                <tr><td class="namevalue-namecell">Longitude</td><td class="namevalue-valuecell"><%# XPath("Longitude")%></td></tr>
                <tr><td class="namevalue-namecell">Asset #</td><td class="namevalue-valuecell"><%# XPath("Number")%></td></tr>                
                <tr><td class="namevalue-namecell">Comments</td><td class="namevalue-valuecell"><%# XPath("Comments")%></td></tr>
                <tr>
                    <td class="namevalue-namecell" valign='top'>Keywords</td>
                    <td class="namevalue-valuecell">
                        <table cellspacing="0" cellpadding="0" border='0'>
                            <asp:Repeater ID="RepeaterAssetStructureImages" runat="server" DataSource='<%# XPathSelect("NOTES/NOTE") %>'>
                                <ItemTemplate>
                                    <tr><td class="namevalue-valuecell"><%# XPath("Name")%></td></tr>
                                </ItemTemplate>
                            </asp:Repeater>            
                        </table>                            
                    </td>
                </tr>
                <tr>
                    <td colspan='2'>
                        <asp:Repeater ID="Repeater2" runat="server" DataSource='<%# XPathSelect("IMAGES/IMAGE") %>'>
                            <ItemTemplate>
                                <a class="image" target="_blank" href='<%# XPath("@href") %>'><img class="image" src='<%# XPath("@src") %>' border="0" /></a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                </tr>
            </table>                
        </ItemTemplate>
    </asp:FormView>
    </form>
</body>
</html>
